"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message
news:Xn*******************************@193.38.113. 46...
<snip>
Sure you can, for modern browsers that support createElement.
http://msdn.microsoft.com/workshop/a...tml/reference/
methods/create element.asp
The createElement method is actually part of W3C's DOM
specification. Modern versions of all browsers that
support DOM, including IE, Mozilla, Netscape and Opera,
should implement document.createElement().
A problem arises with less dynamic browsers, they can reasonably
implement the official DOM structure (childNodes, parentNode and so on)
convenience properties and element/collection retrieval methods making
access and navigation of a standardised DOM practical but if they are
not dynamic enough to reflect changes in the DOM structure into changes
in the displayed page it might reasonably be argued that not
implementing createElement, replaceChild and so on is a good way of
advertising the limited capabilities of the browser to the script
author. These days the less dynamic browsers tend to be found on
smaller devices but the modern ones do seem to go as far as practical
towards implementing the W3C DOM, they just don't include the more
dynamic methods.
Richard.